<!--div class="form-horizontal" style="padding: 0px 35px 0px 40px;"-->
<div class="form-horizontal" style="padding: 0px 0px 0px 0px;">
    <legend style="margin-bottom: 5px;text-align: center;font-weight: bold;font-size:16px;">
        Entity
    </legend>
    <div id="icd-class-name">
        <%- partial('icd-element-class',{name:"Class"}) %>
    </div>
    <hr style="margin: 0 0 5px 0;" />
    <!--legend style="margin-bottom: 5px;text-align: left;font-weight: bold;font-size:14px;">Relation</legend-->



    <div class="accordion" style="margin: 0 0px 5px 0px">
        <!--p>this <strong>deserve</strong> integrity</p-->
        <%- partial('icd-element-attribute') %>
        <!--/div-->
    </div>
    <div>
        <label class='attribute-plus' style="text-align: center;text-align: center"><a>Add Relation</a></label>
    </div>
    <hr style="margin: 0 0 5px 0;" />
</div>

<script>
    $(function(){
        var count=4;
        $(".icd-element-attribute-add").bind("click",function(){
            var that =$(this);
            count++;
            $.ajax({
                url: '/post/html/icd-element-attribute',
                data: {id:count},
                type: 'post',
                success: function(html)
                {
                    $(that).parent().children(".accordion").append(html);
                }
            });
        });
    });
</script>
